package modelPackage;

import java.awt.Point;

/**
 * Abstract class to group together all movable sprite on the screen
 * @author Nikhil
 *
 */

public abstract class Character extends Sprite {

	private Direction direction;
	
	public Character(int height, int width, Point position) {
		super(height, width, position);
		direction = Direction.RIGHT;
	}
	
	public void setDirection(Direction direction){
		this.direction = direction;
	}
	
	public Direction getDirection(){
		return direction;
	}	
	
	@Override
	public void collide() {
		setActive(false);
		vy = -1;
	}
	
}